[#137] Invalid syntax and fixed assertion.

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