remove case where the ref might not be initialized