Fixed issues with pre-ios7 layout crashes