Update withControls.js

Fixed the null controls bug