Fix data load state change issue