resume and pause bug