Fixed a bug in the property api.
I need more tests.