fix issue with <BS> delete wrong amount of spaces
fix code indent