fixed bug on missing function for fixed layout