fix layout bags