fix double return