#249 bug fixed finally

#249 bug fixed finally