Fixed bug where changeListener and modelPropertySetListener functions didn't have model defined