Fix for https://github.com/jettro/angular-es-client/issues/6