Variable fix in Panels frame function.