Fixed bug in moduleflags