Fixes a bug in the default layout