Fix problem with tab state
Fix debug command
Fix broken grep