fixed coffescript issues