fixed autocompletion bug with formatting
updated version