fix RMF compilation