fix bug in forms