fixed the error where the file context could not be created