Fix bug inthe pause command handling.