Fixed failing set remove test from previous fix
Fix traceback with bad arguments to location rules