fix the undefined bug