fixed error when calling formFor