fixed issue in iOS6 layout