Fixed build if remote is disabled