Fix a bug where ace editor autoselects the code