fixed resultCode in sample app