fixed deletion with associations error