Fixed a bug where tasks couldn't be closed without priorities