fixed bug about checking when i should not have for enabled module