Fixed managed state example not compiling