my $self = shift;
if (defined $self->{'$!_package_cache_flag'} &&
- $self->{'$!_package_cache_flag'} == Class::MOP::check_package_cache_flag()) {
+ $self->{'$!_package_cache_flag'} == Class::MOP::check_package_cache_flag(blessed $self)) {
return $self->{'%!methods'};
}