fixes setType and static call issues