Fix bug unasigned variable sha