More bug fixes for css translation problem