Winports try2

According to your advice, I fixed a few issues.