Fix RMI connection