Fixed formatting

Also fixed memory leak when there are more than one owners