Fixing a potential bug when resume parameter is empty