Fixed major bug in elevation restriction check