fixed a few float/integer issues in stackwriter