Fixes warning in loading.cpp