fixing error due to unfound blocks