flex fix random adding off class onload