selecting bugs fixed