CSS: Fixed null reference exception