valid modules fix for multiple apps