Fixed event replacement with new php 5.2 class names