Error wrong call in by_times