Fix #776