Fixes bug in demo