Fixed pause button crash issue.