fix bug on parsing script for teacher