Fixed plot type issue