undefined rules fixed