Fix bug in performance model