fix except syntax