fixing tenat creation issue