fixing static analysis bug