Clean up some code to avoid strict mode warning.

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