fix issue with toggleProperty