It doesn't have a bug so long as no one ever has to edit or update or maintain or read your program or do anything that relies upon your understading of what you intended to do. So, yes, I think it has a bug. If only that the documentation (which of course was written extensively!) will be inconsistent with what the program is doing, or at least with how it's doing it.