Fixes a few bugs on a real hardware (AMD)