Bug fix Wren