fix getVirtualLimit method