fix Risky flag due to opened buffers