Fix statement loading bug