Fixed latex generation