Fixing incorrect method used.
Merge pull request #901 from MarcinSc/develop

Fixing incorrect method used.