fix the bug when javascript didn't work for task create form