Smg's bug solved