Bugfix :: added condition to prevent uninitialized variable  when updating the module