Fix problem with stock location model