bugfix .open - deleted unused variables