Bugfix for function declaration error