fixed nan stuff with citations