Fixing post extract script