Fix for scan warning