fix the problem reported in mantis 3923
mantis 3916