fix commands reading issue