fixed wrong postgen code