fixed leifs bug