fix bug where setting falldown/gravity in lua might not actually make an element fall down