added preventundefinedproperty - fix #60