fix environment argument.
fix non serializable field.