[fix] previous commit breaks checking reference number functionality