fix args in fitsjs api