1. remove restriction warning.
2. fix cycle bug.