Fixed queue error with hooks.