@mbaski - Try changing the `[:12]` to `[:8]` or even `[:4]`.  I suspect the problem might be a bits issue, I got a similar error to yours before putting in the `[:12]`.