fix layout problem of bad box