Fixes some sfl functions