fix the even bug