fixing the duplicated startup callback