Fix params confusing "0" and "undefined"

This would cause some properties to become default instead of 0 when requested.