Misc fixes
Some fixes, and improved ticket system a bit for prioritised tickets