Fix for disable button and history team check