fix consume lock errors