Fix some stupid coding errors