fixed flask 'block' bug