Logic problem I think...