Missing break statement meant some MAX operations where interpreted as POW