fix for compiler warning