Fixed bug in coordinate distance control + minor change in nodes serializers