Fixing unlink warning