removed always overwrite of base classes.
fixed php error on unset variable.