fix type (std::uint32_t -> std::uint16_t).