Fix bug while calling the php bindings class