fixes for Firefox OS part 1