Corrected bounds and setup for error bar