fixed an issue with the has_many form