Fixed Bug with constructors/destructors