fixed a bug that didn't init checkbox