fix bad return