(bluefox) fix delObject function