Fixed parameter order for writes too.. #227