Bug fix in Level.js