Fixing mode line functions.