Fix layout exception