various encounter form bug fixes.