fixing condition for custom css