Fixed get_or_create method.