fixed typo in fill_loop function name