hook-functions: fix for ubifs