have one's head screwed on backwards

[have one's head screwed on backwards] {v. phr.} To lack commonsense; behave in strange and irrational ways.

Henry seems to havehis head screwed on backwards; he thinks the best time to get a suntanis when it is raining and to sleep with his shoes on.