bugfix to invoking loader