Bugfix: correcting loop factor