Fix ceiling function.