Fixes issue where 0 redirects will use default values

0 redirects is casted to false, thus will use the default value of three.