Use correct resource callback syntax