Fixed undefined variable bug in reviews