Fixes editing selections