made leftKeys split properly

leftKeys.split('.') -> leftKeys[0].split('.').