fixed checking for css to change