fixed persistence check