fixed path and npiv function for system and vios state errors