Changed bad ptr bacl to NULL