fixed a bug on add_props