Fixed an error on slower machines
Fix codestyle