prevent NPE when there is nothing to do