I'm not sure if this will fix it, but you do not need the close_data() call when you use the data() function.
Forum Rules