Fixed Variable declare issue