Fix: Added exit() after setting header for reloading page