Fix deprecation warnings for delete!, use pop! instead