Fix monitor problem when rejecting with undefined