Fix return value of pause task