fix error and styling