Fixed Bug when trying to open Settings-Modal

@robme91 for you