Fixed various problems in loadingManager