fixed delete using named query