fix missing nan dependency