fixed an error found thanks to scrutinizer-ci