fix slam-in bug