Fixed various codes.