Fixed bug

Javascript