Solved a bug when you don't want to use test mode