fixed bug in load_factor