fix form attributes