Refixed issue with non-initialized variable