Time goes out of range when zoomed-in

The x-axis for my current data goes from 2 October 2013 to 10 October 2013. But when I press the zoom buttons, the relayout event produces a date range in the year 2000 and the graph suddenly jumps to the year 2000 rather than daterange within my current data. But when I press the reset axes button and zoom in, the date range now gives a proper value. This also seem to happen with the scrollZoom function.