mantis issue 3821