Resolved an invalidOperation-error