Clean up the mess in codes.