fix np exception