Solves layout issues