Invalid string is interpretted as 0. fix it.