Fix compier warnings: incorrect self init, return from void function