fix bug with page controller