BUG: wrong return vals