Nothing seems wrong with those two lines, as long as all the variables are indeed populated correctly. What error(s) is it generating?