bug fixing in Remote deployment