fixed bug in pull #56