fixed maintenance mode
fixes #149