Fix queue element size limit