Re #1627 Fixing wrongly placed declaration