#152 bug fix for MDEV-5399