added fix to mode