Fixed a bug using pageAction which causes issues on Windows.