fixed first bug in issues/83