bug fix 4249

Signed-off-by: Sampath Liyanage <plbsam@gmail.com>
Merge pull request #913 from sampathLiyanage/bugfix4249

bug fix 4249