Fixed "cancel/pause" bug.