Fixed zero values with checking, that a var is defined.