bugs with references