Probably fixed various problems with ace editor