bug smashed!