Fixed autorotation issue when capturing credentials