fix quick layout bug