The goal shouldn't be recognition but getting the bug fixed. A working system for all is reward in itself.
That said, attribution of work is a major theme in academia and business, where professors or department leads traditionally get credited for their student's or subordinates hard work.