fixed css scope bugs