Fix delete operation in forms