Always pass element to getRect; fix getAction call