fixed GCM crash and board flipping issue