The Genesis project was designed to transform a dead moon or planet into a liveable planet. Yet at the end of The Wrath Of Khan, in a nebula with only gases and such, when it is activated it has suddenly created a planet to transform. Sorta like using spray paint that creates the car it's painting. Also sorta makes the whole "bringing Spock back to life" thing unlikely, since there should have been no Genesis planet to begin with.