Fixed bug in FormDisplay