fix hex colour parser