fix wrong return patttern