Fixed render with locals