bugfix with plan loading routine