Fixed pub variable initialization