Fixed some stuff in mcmanager

non declared vars