fix minor bugs in user,subject controller