Fix exception with pearl velocity setting