This bug has been reported before and I thought I fixed it, but after looking it painfully thorough, it turns out there are two wrong variables not one... so thanks again!