fix bug regarding multiple css classes