fixed a bug, where a DELETE message caused an error