Fixing bug with date [1-9]