fix splitting keys