fix some loose ends

Signed-off-by: ayysir <dresadd09691@gmail.com>