probably fixed the slowdown bug as well as the lockup bug

Signed-off-by: James Paton <jpaton2@gmail.com>