I was unable to reproduce the problem in a new project, but I did not remake everything in the original project, only the things needed when making the pause menu based on the tutorial in the ue4 docs, so the problem could be caused by another blueprint in the same project.