fixed selector error checking