fix app key bug