Fixed incorrect SHIP implementation according to Hugh Xiao's suggestions.