Fix bad find/replace, move exports to bottom