patched a bug with datatype of defaults-var