fix layout snap