fix invalid layout