bug fixed for issue 117