Fixed some minor bugs with ids being strings instead of integers.