query variable reference bug fix and deploy message updated