Fixed to work correctly as example says.