Fixes a bug in transition guard logic

Fixes issue #55 

Seems like it might be worth a unit test on this as well, but not sure how to go about testing that within your tests ...

@yohang