Fix error during create ShardedSessionFactory