fix prevalue issue