Fixes bug in DELETE method.