Fix CSS breaking JS logic by error selector change