Fix form display bug