casting for bad uri