Fix double rendering