bugfix for page controller