Removed duplicate error condition for uri