Fixed small bugs where invalid parameters where passed to the delete and edit methods.