Fixed color precedence bug (resolve #22)

Signed-off-by: Martin Evans <martindevans@gmail.com>