I searched on every forum on internet and eventually end up fixing this by modifying the Auto-Lock setting on your iPhone.