Bug 5174 : fixing it by using the right method