Fix method not found on api 7.