Invalid .selfref fix - http://stackoverflow.com/q/24471276/559784