bug fix for setting maintenance