fixed minor error with flash alert