Fixes bug that prepare was not run before block setup