Fixed ArrayIndexOutOfBoundsException
Started to implement Tab Autocomplete(not available yet)