fixed an issue introduced by the previous commit