fixed color problem because of type