closed #679
small fix
closed #831