Fix for 2010 weekend/weekday 500 error issue