no applicable method for 'predict' applied to an object of class "randomForest"

I am loading a randomforest model

 my_model <- readRDS(paste0("/path/to/model/",gene_name, ".RDS"))

then I send a new data for prediction

 Exp_real = predict(my_model, newdata = gene_real)

but it shows this error:
no applicable method for 'predict' applied to an object of class "randomForest"

do you know how can I fix this error:
I also loaded needed packages.
thanks in advance

I can't think of anyway for that to happen except not having the randomForest package loaded. Please show the output of running

search()