paper exploit fixes.

part of https://github.com/Baystation12/Baystation12/pull/5846