form bug fixing