Fix bug in server and increase shm size