Fixed critical bug in read_params.hpp