Fixed that issue with multiple shells and history