Fixed an error in several layouts