Fix error message that lead to a crash