reverted the allowNotInMonth flag