fixed: "can't send headers after they are sent."