Fix of atmos input exploit

What on tin
Merge pull request #5909 from Razharas/InputFix

Fix of atmos input exploit