Daniel - Fixed a bug where ss_flag was never being set to false, line 110