2 WANs, switching when there's no Internet

looks like you did not specify scope and target-scope

have a look here:
http://forum.mikrotik.com/t/advanced-routing-failover-without-scripting/136599/1

and more details here
https://wiki.mikrotik.com/wiki/Manual:Using_scope_and_target-scope_attributes