Fix invalid css issues while pre-compiling