Bug fixing

Remove problem when deleting from data bases