Fixed misplaced render statement