fixed the bug on OUT endpoints