Fixed oregen bug