Fixed flag display, Fixed autopatcher and patchmysql scripts