Sort some code concerning object bar