Fix empty.rules which cause no output connection. Fix check connection, and added remove junk file.