Resolving warning in river