fix layout exception