Man’s conviction overturned because of snoozing lawyer