I changed some stuff around and now it works for double