fix loop cache system. type argument is now a default argument. Fix #234