woops, forgot to properly release the current render target surface after use, and fix a rather glaring mistake in an expression