RG-141 Fixed finalize function
Merge pull request #81 from Edzelopez/RG-141

RG-141 Fixed finalize function