Bug fixed for `level()`