Fix selection coordinates calculation (closes #34)