fix numpy deprecation warning