fix register loader dir