AMD fix and Wrong string comparison in print function