Fixed NMS errors