fixed some codes.