Bug fixes in a:sync and loan calculator example