Bugfix for plans.php