Bugfix in delete rest method