Fixing various bugs/warnings
More work on post processing fix