fixing bug noticed in production