[fix] fixed scratch generator and coffescript generator