fix compile failure due to no return