try to fix messed up end in production