Fixed crash on start.
Bring code to coding standart.