Fixed not registered exception for sample
Revert "Fixed not registered exception for sample"

This reverts commit 57801f431e4ae164fc2fb790c04b7840050d5cd0.
Fixed a bug at Sample project