Bugs with clear command solved. Commands are working properly.