fix for #934

https://github.com/strongloop/loopback/issues/934