Fixes editing ranks