fixed two missing vars