Bugfixes in fake.js