fixed bug with properties