Fixed issue with php 5.3 not supporting $this inside Closures