Morocco edges Haiti for second spot