bug fixed with middle color