fix localmount logic