Fixed assert on Selection object creation for OSX and Linux.