Fixed some stupid Stuff

Like a missing { and a block instead of checkBlock in the outputed code.