fix LED wrapping bug