bug updating and deleting