fixed an issue with stupidity in pages.py
fixed the porting issue finally, maybe