fixed authoriation errors