Forgot to close output buffer