Fixed getTargetBlock doesnt work