Fixes bad instructions