Small bug fixed with the order of declarations: