adding check to fix null ref error when no non-default bindings are specified