Bug exception fixed