fixing min css logic