fix eraseStatic() assumptions