Fixed layout loading so layouts load once only.