fixed PERSISTENT bug