Bug fixed buffer was not cleared after each command