Fix syntax errors

Signed-off-by: Ian Macalinao <me@ian.pw>
Fix bugs

Signed-off-by: Ian Macalinao <me@ian.pw>