I have removed all the detachable. As you said, It helps avoiding unexpected NULL values