fixed small API bug that prevented firefox from running it