fix getURLForBlock bug