Fixed Warnings and col not initialized error