fixed for ace editor