[fix] Reference the function where there properties are added not the layer object it self.