fixed crash from calling wrong method