fixed port compile error