fixed end of resume check