Added workaround for locked file