[PATCH] env: sf: fix init function behaviour