Fixed error caused by adding title bar on iOS