fixed npe for prior result