Bugfix in deparse method, found when porting to python