Fixed layout loading bug