Y=null bug corrected