bugfix for custom items
fix code alignment