Yes, it is a bug, will be fixed in next update.
I find that it's all caves with send you back to the first planet in both galaxy 1 & 2. Same with sleeping you somehow wake up back on the first planet.
I found the typo in the code, will fix that in next update.