fixed bug in loop modeling