Fix queue definition