Fix overflow on narrow device