Fixed that some resize functions, which access the Math.floor didn't add 0.5.