Fixed bugs found by scrutinizer