bug fixing for css