Correcting layout malfunction