Fixed compilation warnings (uint32_t -> uint16_t)