Fixed bugs with security swagger definitions