Fixed a problem with wrong method being called.