Fix a bug in appirater.