fix location setting for all input forms with location