fixed duplicated auth