Fix https://github.com/strongloop/loopback/issues/413