fixes #5460 form styling bug