Wrong method was called, fixes #801