[FIX] fix for bug #1044

fix for bug #1044