missing variables bugfix