cleaning for ratchet

some fix
Merge remote-tracking branch 'origin/master'