fix coffescript bug