Bug in stock entry

Hi ,

I Delete all the Transactions but when I try to make stock entry It’s give me this error

which This Serial Number from old stock entry that I already deleted

when we search for the serial number we see this

When we try to open it

Thanks