correct bug if no plot or images