fix an issue with Lion compatibility