small bug in master code

Signed-off-by: James Pearman <jbpearman@mac.com>