fixed retire bug