bugfix with pagestyle