Fixed Dan's defaultMode Error