Fixed errors in fAssemble and fGetUriComponents