Work with old bad version of numpy (thanks, Nadya)