fixed the issue that BadMethodCallException class do not have namespace