remove unnecessary css for non existent elements