fixed resume button bug