Fixed huge error with flags

Apparently an important line was deleted. This is fixed now and everything is working again.