Fixed bug in property changed handler.