fixed syncing problem between preferences.drawAxes and the corresponding checkbox