the bug occured when you bought all the upgrades before conquering all the girls.
improperly nested if statements caused the ending to be flagged as something you got even though only the 2nd condition was met.