Fix halflayout and struts

This needs to be fixed in the other layouts as well