make sure statements with different instructions get replaced with their respective content, fixes #49.