Fixed some problems with -9999 culling