fixed issue with not advancing in temrinal