Fix for scipy 0.9.0.