Fixed some invalid implementation.

Signed-off-by: crynobone <crynobone@gmail.com>