Bug in fitting