fix swapped calloc arguments
force atom creation, fixes startup failures in some setups
fix maximizer edge case infinite loop, handle stdin closing