fixed a bug reported by Matthias Studer: after rm_blank_plot(), res might be an empty list()