Guess the problem is the `Math.ceil`.