fix for pause and resume class