fix data type with dialyzer