fixed bug in css generation