Fix the frame rule in cave