Fixed pass all check to not allocate memory if taken