Fix seriously unsafe method usage.