Fixed bug with orientation change in editstory