A bugfix for #969

Sorry for re-messaging. It might be a problem with the release of numpy, in the documentation they use it inside with.