Move the bind call to avoid making it every iteration