This version fails on deployment, runs fine in testserver. Why?