Fix for custom port in sync strategy

#377