fixing default value 0 issue