fixed entry restore bug