Fixed layout issues in iOS and Firefox