Fixed internal server error when using wrench