Fix issue with ceil and floor