Fixing levelpath bug