fix leftover bug