framework loader constructor fix.