fixed issue raised by scrutinizer