Fixed smart bug