Fixes for css ref