Fixed type error in form widget