correcting conflicts with global object
fixed deselection