fixed a bug where alpha included in hex code