Fixed inefficiency to remove a smell(warning) that lead to Travis CI failure