fixed problems from initialization