Fix size bug in Mac OS X