preserve data type

just noticed it and will post way of reproducing in hour or two ;)