Error last day selected is not kept