fix for mantis bug 3745