Fixed Bug in leap-controller.js.