bugfixes in px js