Fix method calling for below php 5.4

Can't use $this in anonymous functions ...