Fixes form errors