Fix bug in compiler