fixed for math editor