Fix bug in Remote manager.