fixed bug with style map and class list