Debugged project

Fixed problem with -destroy