fix rgb2hex for small numbers