bug fix
passed js hint