Fix vims function