Fixed error while generating sig