Fix pr 760

Fixed #760