bug #3351: Fix wrong method call. Thanks to Sebastiaan Smit