bug exposed by testing fixed