fixed bug with large layout